//
//  MainViewController.h
//  Surfing_Platform
//
//  Created by amei on 12-4-25.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <CoreData/CoreData.h>
#import "HttpConnectionUtil.h"


@interface MainViewController : UIViewController<HttpConnectionDelegate>{
    UIButton *mLoginBtn;
    UIButton *mLogoutBtn;
    UITextField *mNameField;
    UITextField *mPasswordField;
}

@property (strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (nonatomic,retain) IBOutlet UIButton *mLoginBtn;
@property (nonatomic,retain) IBOutlet UIButton *mLogoutBtn;
@property (nonatomic,retain) IBOutlet UITextField *mNameField;
@property (nonatomic,retain) IBOutlet UITextField *mPasswordField;

- (IBAction)OnButtonClick:(id)sender;
- (IBAction)textFieldDoneEditing:(id)sender;
- (IBAction)backgroundTap:(id)sender;
-(void)showDialog:(NSString *) msg;
@end
